// alert('Hello!JS');

document.write('<h1>Hello!JS</h1>')
document.write('Hello!JS')

console.log(parseFloat('1.2.3abc1.1'))


// ShowNum()
// Func1()

// Test1()

function Test1() {
  for (var i = 0; i < 3; i++) {
    setTimeout(() => { console.log(i) })
  }
}

function ShowNum() {
  num = 100
  document.write('<p>num = ' + num + '</p>')
}

function Func1() {
  document.write('<p>num = ' + num + '</p>')
}


function GetAndShowUserInfo() {
  let uname = prompt('用户名：')
  let age = prompt('年龄：')
  let gender = prompt('性别：')

  document.write('<h2>用户信息</h2>')
  document.write('<p>用户名：' + uname + '</p>')
  document.write('<p>年龄：' + age + '</p>')
  document.write('<p>性别：' + gender + '</p>')
}